/**
 * @author fenglei.you
 */
Me.Tile=function(x,y,width,height,imgObj){
	this.x=x;
	this.y=y;
	this.width=width;
	this.height=height;
	this.imgObj=imgObj;
	
	this.display = new Me.Display(this.x,this.y,this.width,this.height);
}
Me.Tile.prototype.paint=function(context){
	//this.display.clear();
	context.drawImage(this.imgObj.img,this.imgObj.x,this.imgObj.y,this.imgObj.width,this.imgObj.height,
		this.x,this.y,this.width,this.height);
}
Me.Tile.prototype.clear=function(context){
	this.display.clear(context);
}
